<?php
class Student_Form_guestGPAform extends Zend_Dojo_Form
 {
	public function __construct($options = null)
		{
		parent::__construct($options);
		Zend_Dojo::enableForm($this);
		$this->setName('NewGPA');
		//$id = new Zend_Form_Element_Hidden('id');

		//User enters his First Name
		 $Goptions1 = (array(
        ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
        'F' => 'F'));



            $grade_scale1 = new Zend_Dojo_Form_Element_ComboBox('grade1');
            $grade_scale1->setLabel('Grade:');
            $grade_scale1->addMultiOptions($Goptions1);
            $grade_scale1->setAutocomplete(true);
            $grade_scale1->setAttrib("style", "width:5em");
            $grade_scale1->removeDecorator('Label');
            $grade_scale1->addDecorator('Label');
            $grade_scale1->removeDecorator('HtmlTag');
            $grade_scale1->addDecorator('HtmlTag',array('tag'=>'p'));

            $Coptions1 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits1 = new Zend_Dojo_Form_Element_ComboBox('credits1');
            $credits1->setLabel('Credits:');
            $credits1->addMultiOptions($Coptions1);
            $credits1->setAutocomplete(true);
            $credits1->setAttrib("style", "width:5em");
            $credits1->removeDecorator('Label');
            $credits1->addDecorator('Label');
            $credits1->removeDecorator('HtmlTag');
            $credits1->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////One/////////////////////////////////////////////////////////

            $Goptions2 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale2 = new Zend_Dojo_Form_Element_ComboBox('grade2');
            $grade_scale2->setLabel('Grade:');
            $grade_scale2->addMultiOptions($Goptions2);
            $grade_scale2->setAutocomplete(true);
            $grade_scale2->setAttrib("style", "width:5em");
            $grade_scale2->removeDecorator('Label');
            $grade_scale2->addDecorator('Label');
            $grade_scale2->removeDecorator('HtmlTag');
            $grade_scale2->addDecorator('HtmlTag',array('tag'=>'p'));





          $Coptions2 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits2 = new Zend_Dojo_Form_Element_ComboBox('credits2');
            $credits2->setLabel('Credits:');
            $credits2->addMultiOptions($Coptions2);
            $credits2->setAutocomplete(true);
            $credits2->setAttrib("style", "width:5em");
             $credits2->removeDecorator('Label');
             $credits2->addDecorator('Label');
            $credits2->removeDecorator('HtmlTag');
            $credits2->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Two/////////////////////////////////////////////////////////

            $Goptions3 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale3 = new Zend_Dojo_Form_Element_ComboBox('grade3');
            $grade_scale3->setLabel('Grade:');
            $grade_scale3->addMultiOptions($Goptions3);
            $grade_scale3->setAutocomplete(true);
            $grade_scale3->setAttrib("style", "width:5em");
            $grade_scale3->removeDecorator('Label');
            $grade_scale3->addDecorator('Label');
            $grade_scale3->removeDecorator('HtmlTag');
            $grade_scale3->addDecorator('HtmlTag',array('tag'=>'p'));


          $Coptions3 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits3 = new Zend_Dojo_Form_Element_ComboBox('credits3');
            $credits3->setLabel('Credits:');
            $credits3->addMultiOptions($Coptions3);
            $credits3->setAutocomplete(true);
            $credits3->setAttrib("style", "width:5em");
            $credits3->removeDecorator('Label');
            $credits3->addDecorator('Label');
            $credits3->removeDecorator('HtmlTag');
            $credits3->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Three/////////////////////////////////////////////////////////

            $Goptions4 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale4 = new Zend_Dojo_Form_Element_ComboBox('grade4');
            $grade_scale4->setLabel('Grade:');
            $grade_scale4->addMultiOptions($Goptions4);
            $grade_scale4->setAutocomplete(true);
            $grade_scale4->setAttrib("style", "width:5em");
            $grade_scale4->removeDecorator('Label');
            $grade_scale4->addDecorator('Label');
            $grade_scale4->removeDecorator('HtmlTag');
            $grade_scale4->addDecorator('HtmlTag',array('tag'=>'p'));


          $Coptions4 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits4 = new Zend_Dojo_Form_Element_ComboBox('credits4');
            $credits4->setLabel('Credits:');
            $credits4->addMultiOptions($Coptions4);
            $credits4->setAutocomplete(true);
            $credits4->setAttrib("style", "width:5em");
            $credits4->removeDecorator('Label');
            $credits4->addDecorator('Label');
            $credits4->removeDecorator('HtmlTag');
            $credits4->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Four/////////////////////////////////////////////////////////

            $Goptions5 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale5 = new Zend_Dojo_Form_Element_ComboBox('grade5');
            $grade_scale5->setLabel('Grade:');
            $grade_scale5->addMultiOptions($Goptions5);
            $grade_scale5->setAutocomplete(true);
            $grade_scale5->setAttrib("style", "width:5em");
            $grade_scale5->removeDecorator('Label');
            $grade_scale5->addDecorator('Label');
            $grade_scale5->removeDecorator('HtmlTag');
            $grade_scale5->addDecorator('HtmlTag',array('tag'=>'p'));

          $Coptions5 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits5 = new Zend_Dojo_Form_Element_ComboBox('credits5');
            $credits5->setLabel('Credits:');
            $credits5->addMultiOptions($Coptions5);
            $credits5->setAutocomplete(true);
            $credits5->setAttrib("style", "width:5em");
            $credits5->removeDecorator('Label');
            $credits5->addDecorator('Label');
            $credits5->removeDecorator('HtmlTag');
            $credits5->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Five/////////////////////////////////////////////////////////

            $Goptions6 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale6 = new Zend_Dojo_Form_Element_ComboBox('grade6');
            $grade_scale6->setLabel('Grade:');
            $grade_scale6->addMultiOptions($Goptions6);
            $grade_scale6->setAutocomplete(true);
            $grade_scale6->setAttrib("style", "width:5em");
            $grade_scale6->removeDecorator('Label');
            $grade_scale6->addDecorator('Label');
            $grade_scale6->removeDecorator('HtmlTag');
            $grade_scale6->addDecorator('HtmlTag',array('tag'=>'p'));




          $Coptions6 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits6 = new Zend_Dojo_Form_Element_ComboBox('credits6');
            $credits6->setLabel('Credits:');
            $credits6->addMultiOptions($Coptions6);
            $credits6->setAutocomplete(true);
            $credits6->setAttrib("style", "width:5em");
            $credits6->removeDecorator('Label');
            $credits6->addDecorator('Label');
            $credits6->removeDecorator('HtmlTag');
            $credits6->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Six/////////////////////////////////////////////////////////

            $Goptions7 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale7 = new Zend_Dojo_Form_Element_ComboBox('grade7');
            $grade_scale7->setLabel('Grade:');
            $grade_scale7->addMultiOptions($Goptions7);
            $grade_scale7->setAutocomplete(true);
           $grade_scale7->setAttrib("style", "width:5em");
           $grade_scale7->removeDecorator('Label');
            $grade_scale7->addDecorator('Label');
           $grade_scale7->removeDecorator('HtmlTag');
            $grade_scale7->addDecorator('HtmlTag',array('tag'=>'p'));

          $Coptions7 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits7 = new Zend_Dojo_Form_Element_ComboBox('credits7');
            $credits7->setLabel('Credits:');
            $credits7->addMultiOptions($Coptions7);
            $credits7->setAutocomplete(true);
            $credits7->setAttrib("style", "width:5em");
            $credits7->removeDecorator('Label');
            $credits7->addDecorator('Label');
            $credits7->removeDecorator('HtmlTag');
            $credits7->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Seven/////////////////////////////////////////////////////////

            $Goptions8 = (array(
                ' ' => ' ',
        'A'    => 'A',
        'A-'   => 'A-',
        'B+'  => 'B+',
        'B' => 'B',
        'B-'  => 'B-',
        'C+'  => 'C+',
        'C' => 'C',
        'C-' => 'C-',
        'D+' => 'D+',
        'D' => 'D',
        'D-' => 'D-',
                'F' => 'F'));



            $grade_scale8 = new Zend_Dojo_Form_Element_ComboBox('grade8');
            $grade_scale8->setLabel('Grade:');
            $grade_scale8->addMultiOptions($Goptions8);
            $grade_scale8->setAutocomplete(true);
            $grade_scale8->setAttrib("style", "width:5em");
            $grade_scale8->removeDecorator('Label');
            $grade_scale8->addDecorator('Label');
            $grade_scale8->removeDecorator('HtmlTag');
            $grade_scale8->addDecorator('HtmlTag',array('tag'=>'p'));

          $Coptions8 = (array(
              ' ' => ' ',
        '1'    => '1',
        '2'   => '2',
        '3'  => '3',
        '4' => '4',
        '5'  => '5',
        '6'  => '6',
        '7' => '7',
        '8' => '8',
        '9' => '9',
        '10' => '10'));



            $credits8 = new Zend_Dojo_Form_Element_ComboBox('credits8');
            $credits8->setLabel('Credits:');
            $credits8->addMultiOptions($Coptions8);
            $credits8->setAutocomplete(true);
            $credits8->setAttrib("style", "width:5em");
            $credits8->removeDecorator('Label');
           $credits8->addDecorator('Label');
            $credits8->removeDecorator('HtmlTag');
            $credits8->addDecorator('HtmlTag',array('tag'=>'p'));

/////////////////////////////////////////Eight/////////////////////////////////////////////////////////




		$submit = new Zend_Dojo_Form_Element_SubmitButton('Calculate');
                $submit->setAttrib("style", "width:500px");
                $submit->removeDecorator('Label');
                $submit->removeDecorator('HtmlTag',array('tag'=>'dt'));
               // $submit->addDecorator('Label');
                $submit->removeDecorator('HtmlTag');
                $submit->addDecorator('HtmlTag',array('tag'=>'p'));
                

		$this->addElements(array($grade_scale1, $credits1, $grade_scale2, $credits2, $grade_scale3, $credits3,
                    $grade_scale4, $credits4, $grade_scale5, $credits5, $grade_scale6, $credits6, $grade_scale7,
                    $credits7, $grade_scale8, $credits8));
	    $this->addElement($submit);
            

		//$this->setAction('register');
		$this->setMethod('POST');
		}
}


?>
